package com.zretc.entity;

import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class Actor {
    //演员id
    private String actorId;
    //演员姓名
    private String actorName;

    // 关联一个Movie集合
    private List<Movie> movieList;

    public Actor() {
    }

    public Actor(String actorId, String actorName) {
        this.actorId = actorId;
        this.actorName = actorName;
    }

    public Actor(String actorId, String actorName, List<Movie> movieList) {
        this.actorId = actorId;
        this.actorName = actorName;
        this.movieList = movieList;
    }

    public String getActorId() {
        return actorId;
    }

    public void setActorId(String actorId) {
        this.actorId = actorId;
    }

    public String getActorName() {
        return actorName;
    }

    public void setActorName(String actorName) {
        this.actorName = actorName;
    }

    public List<Movie> getMovieList() {
        return movieList;
    }

    public void setMovieList(List<Movie> movieList) {
        this.movieList = movieList;
    }

    @Override
    public String toString() {
        return "Actor{" +
                "actorId='" + actorId + '\'' +
                ", actorName='" + actorName + '\'' +
                ", movieList=" + movieList +
                '}';
    }
}